package com.sucker.infoservice.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author sucker
 * @since 2022-07-04
 */
@Getter
@Setter
@TableName("userinfo")
@Schema(description = "用户表")
public class Userinfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "用户id",hidden = true)
    @TableId(value = "user_id",type = IdType.ASSIGN_ID)
    private String userId;

    @Schema(description = "用户姓名")
    @TableField("username")
    private String username;

    @Schema(description = "手机号")
    @TableField("phone")
    private String phone;

    @Schema(description = "密码")
    @TableField("password")
    private String password;

    @Schema(description = "创建时间",hidden = true)
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    @Schema(description = "更新时间",hidden = true)
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
